package com.mhh.selary.backend.dto.api;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author mhh
 * @date 2020-10-27 11:30:00
 */
@Getter
@Setter
@ApiModel("Http接口复制入参")
public class ApiHttpCopyDTO extends BaseDTO {

    @ApiModelProperty(value = "接口id")
    private Long id;

    @ApiModelProperty(value = "分组id")
    @NotNull(message = "分组id不能为空")
    private Long groupId;

    @ApiModelProperty(value = "接口名称")
    @NotBlank(message = "接口名称不能为空")
    @Length(max = 12, message = "接口名称不能大于12个字符")
    private String apiName;


}
